package com.bupt.liutong.admin.core.form;

import org.apache.struts.action.ActionForm;

public class TreeNodeForm extends ActionForm {
	private static final long serialVersionUID = -1688919993252023491L;
	// 和xml映射的属性
	private String url;
	private String icon;
	private String iconOpen;
	private String target;

	// 为在页面上显示，需要的额外的属性
	private int id;
	private int parentId;
	private String name;

	// 0根节点；1非根非叶节点；2叶子节点
	private int nodeType = LEAVE_NODE;
	public static int ROOT_NODE = 0;
	public static int NONROOT_NONLEAVE_NODE = 1;
	public static int LEAVE_NODE = 2;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getIconOpen() {
		return iconOpen;
	}

	public void setIconOpen(String iconOpen) {
		this.iconOpen = iconOpen;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getParentId() {
		return parentId;
	}

	public void setParentId(int parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getNodeType() {
		return nodeType;
	}

	public void setNodeType(int nodeType) {
		this.nodeType = nodeType;
	}

	public String getTarget() {
		return target;
	}

	public void setTarget(String target) {
		this.target = target;
	}
}